using System.Collections.Generic;

/// <summary>
/// 存储单个资源的数据
/// </summary>
public class AssetBundleItem
{


    public AssetBundleItem(int id, string loadPath, string assetbundlePath, int assetType, List<int> depend = null)
    {
        this.Id              = id;
        this.LoadPath        = loadPath;
        this.AssetBundlePath = assetbundlePath;
        this.AssetType            = assetType;
        this.DependAssetIds  = depend;
    }

    /// <summary>
    /// 给各种序列化,用的构造
    /// </summary>
    public AssetBundleItem()
    {
            
    }

    /// <summary>
    /// 资源Id 
    /// </summary>
    public int Id { get; private set; }


    /// <summary>
    /// 映射，加载资源名。一般为程序调用加载的路径
    /// </summary>
    public string LoadPath { get; private set; } = "";

    /// <summary>
    /// asset路径 【不序列化】
    /// </summary>
    // public string EditorAssetPath { get; set; }

    /// <summary>
    /// ab的资源路径名
    /// </summary>
    public string AssetBundlePath { get; private set; } = "";

    /// <summary>
    /// 资源类型
    /// </summary>
    public int AssetType { get; private set; } = -1;

    /// <summary>
    /// 依赖
    /// </summary>
    public List<int> DependAssetIds { get; private set; } = new List<int>();
}